<title>详情列表</title>

<div class="layui-card layadmin-header">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a lay-href="">主页</a>
        <a lay-href="home/article/list"><cite>新闻列表</cite></a>
        <a><cite>详情列表</cite></a>
    </div>
</div>

<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">

            <!-- 搜索表单 -->
            <div class="layui-form" lay-filter="LAY-home-cmslist-search-form" id="LAY-home-cmslist-search-form">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <div class="layui-input-block">
                            <button class="layui-btn layuiadmin-btn-list" data-type="add">添加</button>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">标题</label>
                        <div class="layui-input-block">
                            <input type="text" name="keywords" placeholder="新闻标题" lay-affix="clear"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">新闻分类</label>
                        <div class="layui-input-inline">
                            <input type="hidden" id="catId" name="cat_id" class="layui-input">
                            <button class="layui-btn layui-btn-primary" id="dropdown-type">
                                <span>全部</span>
                                <i class="layui-icon layui-icon-down layui-font-12"></i>
                            </button>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <div class="layui-input-inline">
                            <button class="layui-btn" lay-submit lay-filter="LAY-home-cmslist-search-form-submit">搜索
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <table id="LAY-home-cmslist-list" lay-filter="LAY-home-cmslist-list"></table>
            <script type="text/html" id="LAY-home-cmslist-tools">
                <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="detail"><i
                        class="layui-icon layui-icon-eye"></i>查看</a>
                <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="copy"><i
                        class="layui-icon layui-icon-edit"></i>复制</a>
                <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit"><i
                        class="layui-icon layui-icon-edit"></i>编辑</a>
                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i
                        class="layui-icon layui-icon-delete"></i>删除</a>
            </script>
        </div>
    </div>
</div>

<script type="text/html" id="ID-table-cms-is_top-switch">
    <!-- 这里的 checked 的状态值判断仅作为演示 -->
    <input type="checkbox" name="is_top" value="{{= d.article_id }}" title="是|否" lay-skin="switch"
           lay-filter="cms-is_top-status" {{=d.is_top == 1 ? "checked" : "" }}>
</script>

<script type="text/html" id="ID-table-cms-is_best-switch">
    <!-- 这里的 checked 的状态值判断仅作为演示 -->
    <input type="checkbox" name="is_best" value="{{= d.article_id }}" title="是|否" lay-skin="switch"
           lay-filter="cms-is_best-status" {{=d.is_best == 1 ? "checked" : "" }}>
</script>

<script type="text/html" id="ID-table-cms-is_hot-switch">
    <!-- 这里的 checked 的状态值判断仅作为演示 -->
    <input type="checkbox" name="is_hot" value="{{= d.article_id }}" title="是|否" lay-skin="switch"
           lay-filter="cms-is_hot-status" {{=d.is_hot == 1 ? "checked" : "" }}>
</script>

<script type="text/html" id="ID-table-cms-is_show-switch">
    <!-- 这里的 checked 的状态值判断仅作为演示 -->
    <input type="checkbox" name="is_show" value="{{= d.article_id }}" title="是|否" lay-skin="switch"
           lay-filter="cms-is_show-status" {{=d.is_show == 1 ? "checked" : "" }}>
</script>


<script type="text/html" id="TPL-dropdown-cmsCat">
    <button class="layui-btn layui-btn-primary dropdown-demo">
        <span>{{= d.cmsCat.cat_name || '无' }}</span>
        <i class="layui-icon layui-icon-down layui-font-12"></i>
    </button>
</script>

<script src="res/modules/articleCms.js"></script>
